package cn.echogo.framework.core;

import java.lang.reflect.Type;

import cn.echogo.framework.http.EGHttpClientException;

public interface HttpInvoker {

	public static final int GET = 1;
	public static final int POST = 2;

	public String execute(String url, Object content, int method) throws EGHttpClientException;

	<T> T get(String url, Type responseType) throws EGHttpClientException;

	<T> T post(String url, Object content, Type responseType) throws EGHttpClientException;

}
